// VectorFields1Dlg.h : header file
//

#pragma once
#include "afxwin.h"

#include "DrawableWidget.h"

#include "FloatVolGrid.h"

#include "ViewRotateYawPitch.h"
#include "afxcmn.h"


// CVectorFields1Dlg dialog
class CVectorFields1Dlg : public CDialog
{
// Construction
public:
	CVectorFields1Dlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_VECTORFIELDS1_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	// DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedOk();
	afx_msg void OnBnClickedCancel();

	// 
private:

	FloatVolGridDownSampled m_volGrid;

	ViewRotateYawPitch m_viewRotate;

	VolumeViz m_volViz;
	
	CDrawableWidget m_drawWidget;

	void SetSlidersFromVolViz();
	void SetVolVizFromSliders();
	DECLARE_MESSAGE_MAP()
public:
	CSliderCtrl m_transferWidthSlider;
	CSliderCtrl m_transferOffSlider;
	afx_msg void OnNMReleasedcaptureSliderTransferOff(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnNMReleasedcaptureSliderTransferScale(NMHDR *pNMHDR, LRESULT *pResult);
};
